﻿using System;
using TaoSH.AppCode;

namespace TaoSH.View
{
    public partial class AassignUser :BasePage
    {
        public string[] arrUsers
        {
            get { return hidCheckNodes.Value.ToString().TrimEnd(',').Split(','); }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            hidRoleCode.Value = Request.QueryString["RoleCode"].ToString();

        }

        protected void btAssignMenu_Click(object sender, EventArgs e)
        {
            int intRoleCode = int.Parse(hidRoleCode.Value.ToString());

            if (new JH_Auth_UserRoleB().AssignUser(arrUsers, intRoleCode) == "Success")
            {
            }
            else
            {
            }
        }
    }
}